
 package com.ami.kvm.jviewer.gui;
 
 import java.awt.Component;
 import java.awt.Container;
 
 
 
 
 
 
 
 public class customizefilechooser
 {
   public void customizeFileChooser(Container paramContainer)
   {
     Component[] arrayOfComponent = paramContainer.getComponents();
     for (int i = 0; i < arrayOfComponent.length; i++) {
       if (unpackDialogComponents(arrayOfComponent[i]).equals("MetalFileChooserUI$3")) {
         arrayOfComponent[i].setEnabled(false);
         arrayOfComponent[i].getParent().setVisible(false);
       }
       
       if (unpackDialogComponents(arrayOfComponent[i]).equals("JComboBox")) {
         arrayOfComponent[i].setEnabled(false);
         arrayOfComponent[i].getParent().setVisible(false);
       }
       if (((Container)arrayOfComponent[i]).getComponentCount() > 0) {
         customizeFileChooser((Container)arrayOfComponent[i]);
       }
     }
   }
   
   private String unpackDialogComponents(Component paramComponent) {
     String str = paramComponent.getClass().getName();
     int i = str.lastIndexOf(".");
     if (i != -1)
       str = str.substring(i + 1);
     return str;
   }
 }


/* Location:              D:\Users\tianlin\Downloads\JViewer.jar!\com\ami\kvm\jviewer\gui\customizefilechooser.class
 * Java compiler version: 5 (49.0)
 * JD-Core Version:       0.7.1
 */